#!/bin/sh
/bin/mount -a

mkdir -p /dev
/bin/mount -t devtmpfs devtmpfs /dev

cat /etc/motd

#::sysinit:/bin/busybox mount -t proc proc /proc
#::sysinit:/bin/busybox mount -t tmpfs tmpfs /tmp
#::sysinit:/bin/busybox mount -o remount,rw /
#::sysinit:/bin/busybox --install -s

# 在haps上启动需要执行的代码
/bin/busybox --install -s
/dev/console::sysinit:-/bin/ash
/sbin/mdev -s


echo "开始insmod /etc/sysbus_mailbox.ko"
insmod /etc/sysbus_mailbox.ko
echo "完成insmod /etc/sysbus_mailbox.ko"
#/etc/hello
chmod +x /etc/cpu.sh
/etc/cpu.sh
#./apps/lkvm-static run -m 512 -c1 --console serial -p "root=/dev/ram console=ttyS0 earlycon=uart8250,mmio,0x3f8" -k ./apps/Image --debug --cvm --name vm1
